package com.wc.alorithm_luogu.P5721;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/19 16:55
 * @description https://www.luogu.com.cn/problem/P5721
 * 数字直角三角形
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int curNum = 1;
        for (int i = 0; i < n; i++) {
            for (int j = n; j > i; j--) {
                if (curNum < 10) {
                    System.out.print("0" + curNum);
                } else {
                    System.out.print(curNum);
                }
                curNum++;
            }
            System.out.println();
        }
    }
}
